<?php

namespace App\Models;

class GoodsType extends Model
{
    protected $table = 'yf_goods_type';
    protected $primaryKey = 'type_id';
    public $timestamps = false;
    protected $guarded = ['type_id'];

    public function goodsBrands()
    {
        return $this->belongsToMany(GoodsBrand::class, 'yf_goods_type_brand', 'type_id', 'brand_id');
    }
}
